package com.dreamwhale.machinery.controller;


import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

import org.springframework.web.bind.annotation.RestController;
import org.springframework.web.servlet.ModelAndView;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import java.io.IOException;

/**
 * <p>
 * ulink
 * </p>
 *
 * @author Author
 * @since 2020-06-01
 */
@RestController
public class CustomerController {


    /**
     * ulink
     *
     * @return
     */
    @RequestMapping("/ulink")
    public void expressdetail(HttpServletResponse response, HttpServletRequest request) throws IOException {
//        return "ulink.html";
        response.sendRedirect(request.getContextPath() + "/ulink.html");
//        ModelAndView mav = new ModelAndView();
//        mav.setViewName("ulink");
//        return mav;
    }
}

